package com.oocl.panelDB;

import java.util.HashMap;
import java.util.Hashtable;

import javax.swing.JPanel;

import com.oocl.tm.ui.MyPanel;

public class PanelDB {
	private static Hashtable<String, MyPanel>  panelDB = new Hashtable<String,MyPanel>();
	
	
	public static MyPanel getPanel(String name){
		if(panelDB.get(name)==null){
			panelDB.put(name, new MyPanel());
		}
		return panelDB.get(name);
	}
}
